package com.devunion.salon.core.model;

import javax.persistence.OneToMany;
import javax.persistence.Entity;
import java.util.List;

/**
 * @author spetrakovsky
 */
@Entity
public class Company extends BaseSalonEntity {

    private String businessName;

    /**
     * Parts/department of the company.
     * One primary office always exists.
     */
    @OneToMany
    private List<Office> offices;

    public String getBusinessName() {
        return businessName;
    }

    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }

    public List<Office> getOffices() {
        return offices;
    }

    public void setOffices(List<Office> offices) {
        this.offices = offices;
    }
}
